﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using OFB.BLL.Context;
using OFB.BLL.ViewModel;

namespace OFB.BLL.Repository
{
    public class RecentFeedbackBLL:IRecentFeedbackBLL
    {
        private RecentFeedbackContext context;
        public RecentFeedbackBLL()
        {
            context = new RecentFeedbackContext();
        }
        #region IRecentFeedBackBLL Members

        public ICollection<ViewModel.RecentFeedbackViewModel> FindRecentFeedBack()
        {
            return context.RecentFeedback.Init("GetRecentFeedback",null)
                   .MapCollection<RecentFeedbackViewModel>()
                   .GetCollection();
        }

        #endregion
    }
}
